# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=rdp-cipher-checker
_pkgname=rdp-check-ciphers
pkgver=0.1
pkgrel=4
pkgdesc='Enumerate the encryption protocols supported by the server and the cipher strengths supported using native RDP encryption.'
groups=('blackarch' 'blackarch-scanner' 'blackarch-crypto' 'blackarch-windows')
arch=('any')
url='https://labs.f-secure.com/tools/rdp-cipher-checker/'
license=('BSD')
depends=('python2')
source=("https://labs.f-secure.com/assets/BlogFiles/$_pkgname.zip")
sha512sums=('7410edce4f99c0089c7f79ddc3c6c318b32f5641aa8eb8c9c86590285f019efc0b77e8cbe9aadab1c321fd62d260341fad165a3e105372208e211564a953ec0d')

prepare() {
  sed -i '1i\#!/usr/bin/python2' "${_pkgname//-/_}.py"
}

package() {
  install -Dm 755 "${_pkgname//-/_}.py" "$pkgdir/usr/bin/$pkgname"
}

